<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@ taglib prefix="aj4" uri="http://richfaces.org/a4j" %>
<%--
  Created by IntelliJ IDEA.
  User: Волков Олег
  Date: 07.05.14
  Time: 13:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<body>
<f:view>
    <h:form>
        <center>
            <rich:panel styleClass="login_panel" header="#{autoriseloc.title}">
                <h:panelGroup>
                    <h:message for="name" styleClass="errorMessage"/>
                    <h:message for="pass" styleClass="errorMessage"/>
                    <h:panelGrid columns="2" styleClass="full" columnClasses="dleft, dright" cellpadding="0" cellspacing="0"
                                 >
                        <h:outputText value="#{autoriseloc.login}"/>
                        <h:inputText id="name" value="#{UserAutorisationBean.login}">
<%--                                                             required="true"
                                                             requiredMessage="Поле Name обязательно для заполнения">
                                                    <f:validateLength minimum="3" maximum="10"/>--%>
                        </h:inputText>
                        <h:outputText value="#{autoriseloc.pass}"/>
                        <h:panelGroup>
                            <h:inputSecret id="pass" value="#{UserAutorisationBean.password}">
<%--                                required="true"
                                requiredMessage="Поле Password обязательно для заполнения">--%>
                         <f:validateLength minimum="4"/>
                            </h:inputSecret>
                        </h:panelGroup>
                    </h:panelGrid>
                    <h:commandButton value="Enter" action="#{UserAutorisationBean.autorisation}"/>
                </h:panelGroup>
            </rich:panel>
        </center>
    </h:form>
</f:view>
</body>
</html>
